<ul id="projects">
	<?php foreach ($this->projects as $project): ?>
		<li class="<?php echo $project->getBuildStatus() ?>">
			<?php if (in_array($project->getBuildStatus(), array('failed', 'success'))): ?>
				<a href="<?php echo $this->url(array('action' => 'project', 'controller' => 'index', 'project' => $project->getProjectKey())) ?>">
					<?php echo $this->escape($project->getName()) ?>
				</a>
			<?php else: ?>
				<?php echo $this->escape($project->getName()) ?>
			<?php endif; ?>
		</li>
	<?php endforeach;?>
</ul>